package com.jzg.jcptadmin.ui;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.jzg.jcptadmin.R;
import com.jzg.jcptadmin.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

public class ResultActivity extends BaseActivity {

    @Bind(R.id.webview)
    WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result);
        ButterKnife.bind(this);
        //启用支持javascript
        WebSettings settings = webView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
        settings.setLoadWithOverviewMode(true);
        webView.loadUrl("http://www.jingzhengu.com");
    }
}
